interface MyImage {
    url: string
    text: string
}

class Main {
    public data: any

    public constructor() {
        this.setData()
    }

    /**
     * 生命周期函数--监听页面加载
     */
    public onLoad = (options: any) => {

    }

    private setData() {
        const images: MyImage[] = []
        for (let i = 0; i < 3; i++) {
            images.push({
                url: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1546837907482&di=b42cea5f031482fbc31b66fb49cdbec5&imgtype=0&src=http%3A%2F%2Fpic28.photophoto.cn%2F20130818%2F0020033143720852_b.jpg',
                text: 'B'
            })
        }
        this.data = {
            imageUrls: images
        }
    }
}

Page(new Main());